<%@ page language="java" contentType="text/html; charset=utf-8 " pageEncoding="utf-8" import="domain.Room"%>
<html>
	<head>
		<meta charset="utf-8">
		<base href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/" %>"/>
		<title>我的</title>
	</head>
<style type="text/css">
		body{padding:0px;margin:0px;}
		.bgdiv{
			background:url(image/background.png) no-repeat;
			position: fixed;
			width: 100%;
			height: 100%;
			background-size:100% 100%;
		}
		.menu{
			position: fixed;
			bottom: 0;
			width: 100%;
			height: 10%;
			background: white;
			box-shadow: rgba(0, 0, 0, 0.08) 2px 0px 0px 0px;
			border-top: 1px black solid;
		}
		.main{
			position: absolute;
			left: 5%;
			top: 5%;
			width: 90%;
			height: 83%;
			background: white;
			opacity:0.7;
			overflow:auto;

		}
		.title{
			width: 80%;
			margin: auto;
			margin-top: 3%;
			border-bottom: 1px #000000 solid;
			font-size: 12px;
		}
		.mange{
			width: 80%;
			margin: auto;
			font-size: 11px;
			margin-top: 3%;
			padding-bottom: 3%;
			border-bottom: 1px #eeeeee solid;
		}
		button{
border-width: 0px;

    width: 60px;
    height: 25px;
    background: inherit;
    background-color: rgba(0, 207, 226, 1);
    border: none;
    border-radius: 50px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    font-size: 14px;
    color: #FFFFFF;
		}
	</style>
	<%
                        	Room room=new Room();
                        	if(session.getAttribute("userloginflag")==null){
                        	%>
                        	<script type="text/javascript">
                        	    window.location.href="index.jsp";
                        	</script>
                            <% }else{
                            room=(Room)session.getAttribute("userloginflag");
                            %>
	<body>
		<div class="bgdiv"></div>
			<div class="menu">
				<div style="position: absolute;left: 5%;width: 30%;height: 100%;" onclick="hrefPersion()">
					<center><span><img src="image/u37.svg" height="35%" style="margin-top: 5%;" /></span><br />
					<span style="font-size: 70%;">常住</span></center>
				</div>
				<div style="position: absolute;left: 35%;width: 30%;height: 100%;" onclick="hrefVisitor()">
					<center><span><img src="image/u40.svg" height="35%" style="margin-top: 5%;" /></span><br />
					<span style="font-size: 70%;">访客</span></center>
				</div>
				<div style="position: absolute;right: 5%;width: 30%;height: 100%;" onclick="hrefMain()">
					<center><span><img src="image/u41.png" height="35%" style="margin-top: 5%;" /></span><br />
					<span style="font-size: 70%;color: #199ED8;">我的</span></center>
				</div>
			</div>
			<div class="main">
				<div class="title">
					<h4><%=room.getHousernum() %></h4>
					<%=room.getCommunity_name() %><br />
					<p style="color: #666666;"><%=room.getCommunity_info() %></p>
				</div>
                <div style="width: 80%;margin: auto;margin-top:5%;font-size: 10px;">
					<span style="font-weight: 600;">业主姓名：</span><span><%=room.getOwnername() %></span><br /><br />
					<span style="font-weight: 600;">手机：</span><span><%=room.getPhone() %></span><br /><br />
					<span style="font-weight: 600;">房产证照片：</span><br /><span><img src="<%=room.getHousecard_img() %>" width="40%" /></span><br /><br />
					<span style="font-weight: 600;">审核状态：</span>
					<% if(room.getState()==0){ %>
                    					<span style="color: #888888;">待审核</span>
                    					<% }if(room.getState()==1){ %>
                    					<span style="color:green;">已审核</span>
                    					<% }if(room.getState()==2){ %>
                    					<span style="color: red;">未通过</span>
                    					<% } %><br /><br />
					<center><button onclick="updateRoom()">去修改</button></center><br /><br />
				</div>

			</div>
		</div>

	</body><% } %>
	<script>
	    if(/Android (\d+\.\d+)/.test(navigator.userAgent)){
	       var version = parseFloat(RegExp.$1);
	    if(version>2.3){
	       var phoneScale = parseInt(window.screen.width)/230;
	       document.write('<meta name="viewport" content="width=230, minimum-scale = '+ phoneScale +', maximum-scale = '+ phoneScale +', user-scalable=no, target-densitydpi=device-dpi">');
	       }else{
	            document.write('<meta name="viewport" content="width=230, target-densitydpi=device-dpi">');
	       }
	       }else{
	            document.write('<meta name="viewport" content="width=230, user-scalable=no, target-densitydpi=device-dpi">');
	       }
		   function hrefPersion(){
			   window.location.href="PersonInfo";
		   }
		   function hrefVisitor(){
			   window.location.href="VisitorInfo";
		   }
		   function hrefMain(){
			   window.location.href="app/main.jsp";
		   }
		   function updateRoom(){
		        window.location.href="app/room/roomUpdate.jsp";
		   }
	</script>
</html>